import React from 'react';
import Taro from "@tarojs/taro";
import { Provider } from "react-redux";

import configStore from "./store";

import "taro-ui/dist/style/index.scss"; // 全局引入一次即可
import "./app.scss";
import "./assets/iconFont/icon.scss";

// 如果需要在 h5 环境中开启 React Devtools
// 取消以下注释：
// if (process.env.NODE_ENV !== 'production' && process.env.TARO_ENV === 'h5')  {
//   require('nerv-devtools')
// }

const store = configStore();

export default class App extends React.Component {

  render() {
    return (
      <Provider store={store}>
        {this.props.children}
      </Provider>
    );
  }
}